package com.cgsd.heyu.entity;

import com.google.gson.Gson;

import java.util.List;

/**
 * @author xiaoxing
 * Description vip购买产品
 * CreateData: 2021/1/29
 */
public class VipProductEntity {
    //微信支付
    public static final String PAY_WEIXIN = "1";
    //支付宝支付
    public static final String PAY_ALIPAY = "2";


    private String seqId;
    /**
     * vip等级
     */
    private String vipLevel;
    /**
     * vip名称
     */
    private String vipName;
    /**
     * vip真实价格
     */
    private String realPrice;
    /**
     * vip划线价格
     */
    private String markingPrice;
    /**
     * 订单描述
     */
    private String description;

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public String getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(String vipLevel) {
        this.vipLevel = vipLevel;
    }

    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName;
    }

    public String getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(String realPrice) {
        this.realPrice = realPrice;
    }

    public String getMarkingPrice() {
        return markingPrice;
    }

    public void setMarkingPrice(String markingPrice) {
        this.markingPrice = markingPrice;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private List<Payment> payment;

    public List<Payment> getPayment() {
        return payment;
    }

    public void setPayment(List<Payment> payment) {
        this.payment = payment;
    }

    public static class Payment {
        private String type;
        private String name;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

//    {"resultCode":200,"resultMsg":"操作成功","error":"操作成功","bizBody":[{"seqId":1,"vipLevel":1,"vipName":"年VIP","realPrice":100000,"markingPrice":100000,"description":"测试","createDate":"","updateDate":"2021-02-02 16:07:48","payment":[{"type":"adapay","name":"支付宝支付"},{"type":"wechat","name":"微信支付"}]}],"sysBody":{"requestId":"","requestTime":"2021-04-08","requestHost":"demo.cgsd163.com","requestUrl":"\/user-service\/vip\/v1\/getVipPriceSettingList"}}


    @Override
    public String toString() {
        return new Gson().toJson(this);
    }


}
